Building surf browser on Alpine Linux

mo' tabs mo' problems, no tabs no problems

Home About Projects Blog Games Contact Support

You need a C99 compiler, and development files/headers for gcr, gtk, and webkit:
doas apk add gcr-dev gtk+3.0-dev webkit2gtk-4.1-dev

Then installing is a simple make and optionally make install.

For Wayland, you may get an error similar to this:

(surf:7720): Gdk-CRITICAL **: 21:59:49.563: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  11
  Current serial number in output stream:  12

To fix, set an environment variable for GDK_BACKEND=x11 when running surf.
e.g. GDK_BACKEND=x11 surf https://www.wikipedia.com


source code for this site